<template>
  <div class="List">
    <h3>饿了么</h3>
    <div class="tie">
      <span
        v-for="(item, index) in passlist"
        :key="index"
        @click="curr(index)"
        :class="{ active: curren == index }"
        >{{ item }}</span
      >
    </div>
    <div class="zong">
      <div class="jiaozi">
        <div class="chun">纯手工饺子（凤城九路店）</div>
        <span>已送达</span>
      </div>
      <div class="suan">
        <img src="../assets/3.jpg" alt="" />
        <img src="../assets/2.jpg" alt="" />
        <div class="qi">￥17.8</div>
      </div>
      <div class="suanon">再来一单</div>
    </div>
   
  </div>
</template>

<script>
export default {
  data() {
    return {
      curren: 0,
      passlist: ["全部", "待消费", "待评价", "退款"],
 
     
    
    };
  },
  methods: {
    curr(index) {
      this.curren = index;
    },
 
  },
};
</script>

<style scoped>
h3 {
  height: 50px;
  text-align: center;
}
.zong {
  width: 96%;
  /* background-color: aqua; */
  margin: 2%;
  border-radius: 10px;
  height: auto;
}
.tie {
  display: flex;
  justify-content: space-between;
  align-content: center;
  padding: 10px;
}
.tie span.active {
  color: rgb(0, 183, 255);
  border-bottom: 2px solid rgb(0, 183, 255);
}
.jiaozi {
  display: flex;
  justify-content: space-between;
}
.suan {
  display: flex;
  justify-content: space-between;
}

.suan img {
  width: 100px;
  padding: 10px;
}
.qi {
  padding: 10px;
}
.suanon {
  float: right;
  padding: 10px;
  border: 1px solid rgb(0, 183, 255);
  color: rgb(0, 183, 255);
  border-radius: 20px;
}
.tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  width: 98%;
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  border-top: 1px solid #ccc;
  background-color: rgb(0, 183, 255);
  color: #fff;
}

.tabbar span.active {
  color: red;
  border-bottom: 2px solid red;
  font-weight: bold;
}
</style>